<?php
//$url='http://sms.webchinese.cn/web_api/?Uid=中汇安&KeyMD5='.md5('o431d3ujo2yyw8wpplq1').'&smsMob=17634351014&smsText=验证码：8888';
$url="http://utf8.api.smschinese.cn/?Uid=和讯中汇安&Key=94626749399287601941&smsMob=17634351014&smsText=验证码：8888";
echo Get($url);
function Get($url)
{
    $ch = curl_init();
// curl_init()需要php_curl.dll扩展
    $timeout = 5;
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $file_contents = curl_exec($ch);
    curl_close($ch);
    return $file_contents;
}